package org.jwos.platform.service;

import org.jwos.platform.domain.GlobalConfig;
import org.jwos.platform.domain.GlobalSession;
import org.jwos.platform.domain.User;

public interface SessionManager {
	
	void registerSession(String sessionId,User user);
	
	void unregisterSession(String sessionId);
	
	User getUserBySessionId(String sessionId);
	
	Object getAttribute(String sessionId,String name);
	
	void setAttribute(String sessionId,String name,Object value);
	
	void removeAttribute(String sessionId,String name);
	
	GlobalSession getGlobalSession(String sessionId);
	
	GlobalConfig getGlobalConfig();
}
